﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Cofe.Core.Actions
{
    public static class ITransferHelperExtension
    {
        public static TransferMode GetSupportedMode(this ITransferHelper helper, ICofeSystemInfo entry, ICofeDirectoryInfo fromm, ICofeDirectoryInfo too)
        {
            return helper.GetSupportedMode(new ICofeSystemInfo[] { entry }, fromm, too);
        }


        public static Task<TransferMode> TransferAsync(this ITransferHelper helper, TransferMode mode, 
            ICofeSystemInfo entry, ICofeDirectoryInfo fromm, ICofeDirectoryInfo too,
            IProgress<ProgressEventArgs> progress, CancellationToken cts)
        {
            return helper.TransferAsync(mode, new ICofeSystemInfo[] { entry }, fromm, too, progress, cts);
        }

    }
}
